import java.util.Scanner;

/**
 * Created by dllo on 3/28/18.
 */
public class Question02 {
    public static void main(String[] args) {

        System.out.println("请输入3个整数");


        // 输入
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();

        // 取最大值
        int max = -1;
        if (a >= b && a >= c) {
            max = a;
        }
        if (b >= a && b >= c) {
            max = b;
        }
        if (c >= a && c >= b) {
            max = c;
        }

        // 取最小值
        int min = -1;
        if (a <= b && a <= c) {
            min = a;
        }
        if (b <= a && b <= c) {
            min = b;
        }
        if (c <= a && c <= b) {
            min = c;
        }

        // 输出
        System.out.println("最大值:" + max + ",最小值" + min);
    }

}